<?php
$this->title = "我发布的帖子";
?>
<?php
use yii\widgets\LinkPager;

?>
<div class="main mb20">

    <!-- Nav tabs -->
    <div role="tabpanel" style="position:relative;">

        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/info') ?>">个人资料</a></li>
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/index') ?>">我的揭示版</a></li>
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/collect') ?>">收藏</a></li>
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/comment') ?>">评论</a></li>
            <li role="presentation" class="active"><a href="<?= Yii::$app->urlManager->createUrl('member/post') ?>">我发表的</a></li>
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/message') ?>">消息</a></li>
        </ul>


        <!-- Tab panes -->
        <div class="tab-content pd20">


            <div role="tabpanel" class="tab-pane active" id="three">
                <div class="search-type">
                    <span style="font-size: 16px;float: left"><?=$msg?></span>
                    <div class="btn-group">
                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false" style="float: right">
                            筛选 <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="<?=Yii::$app->urlManager->createUrl(['member/post'])?>">我的发表</a></li>
                            <li><a href="<?=Yii::$app->urlManager->createUrl(['member/post','type'=>1])?>">帖子</a></li>
                            <li><a href="<?=Yii::$app->urlManager->createUrl(['member/post','type'=>2])?>">图片</a></li>
                            <li><a href="<?=Yii::$app->urlManager->createUrl(['member/post','type'=>3])?>" >链接</a></li>
                        </ul>
                    </div>
                </div>
                <div class="row">

                    <div class="col-xs-12">

                        <ul class="list-unstyled">
                            <?php foreach($model as $v):?>
                                <li class="sidebar_list wmhot">
                                    <a href="<?=Yii::$app->urlManager->createUrl(['post/index','cid'=>$v['cate']['id']])?>" class="" title="<?=$v['cate']['name']?>"><span class="text-primary">【<?=$v['cate']['name']?>】</span></a>
                                    <a href="<?=Yii::$app->urlManager->createUrl(['post/view','id'=>$v['id']])?>" class="" title="<?=$v['title']?>"><span><?=$v['title']?></span></a>
                                </li>
                            <?php endforeach?>
                        </ul>
                        <hr/>
                        <?=LinkPager::widget([
                            'pagination' => $pages,
                        ]);?>

                    </div>
                </div>
            </div>


        </div>

    </div>
    <!-- Nav tabs -->
</div>

